home *** CD-ROM | disk | FTP | other *** search
- unit Unit1;
-
- interface
-
- uses
- SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
- Forms, Dialogs, StdCtrls, DimLib;
-
- type
- TForm1 = class(TForm)
- Edit1: TEdit;
- Label1: TLabel;
- Label2: TLabel;
- Edit2: TEdit;
- Label3: TLabel;
- Edit3: TEdit;
- Label4: TLabel;
- Edit4: TEdit;
- Label5: TLabel;
- Edit5: TEdit;
- Label6: TLabel;
- CheckBox1: TCheckBox;
- Button1: TButton;
- Button2: TButton;
- procedure Button1Click(Sender: TObject);
- procedure Button2Click(Sender: TObject);
- procedure CheckBox1Click(Sender: TObject);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- uses Unit2;
-
- {$R *.DFM}
-
- procedure TForm1.Button1Click(Sender: TObject);
- begin
- DimWindow(Handle);
- Form2.ShowModal;
- UnDimWindow(Handle);
- end;
-
- procedure TForm1.Button2Click(Sender: TObject);
- begin
- DimWindow(Handle);
- MessageDlg('I knew you could do it!', mtInformation, [mbOk], 0);
- UnDimWindow(Handle);
- end;
-
- procedure TForm1.CheckBox1Click(Sender: TObject);
- begin
- EnableDim(CheckBox1.Checked);
- end;
-
- end.
-